<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"  import="com.itheima.Student" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>



<html>
<head>
    <title>Title</title>
</head>
<body>
<table width="600px"  border="1px">
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
        <%--<%--%>
        <%--ArrayList<Student>  students= (ArrayList<Student>) session.getAttribute("studnets");--%>
        <%--for (Student stu : students) {--%>
    <%--%>--%>
    <c:forEach items="${studnets}" var="stu">
    <tr>
        <td>
            ${stu.username}
        </td>
        <td>
            ${stu.age}
        </td>
        <td>
            ${stu.score}
        </td>
        </c:forEach>
    </tr>
</body>
</html>
